package com.ls.thread.interrupt;

import java.io.IOException;

public class TicketInterrupt2 extends Thread{

	@Override
	public void run() {
		
			try {
				System.in.read();
			} catch (IOException e) {
				e.printStackTrace();
			}
			Thread.currentThread().interrupt();
			
		//无法运行后面的程序
		System.out.println("run()运行完毕");
		
	}
	
	
	public static void main(String[] args) {
		Thread r=new TicketInterrupt2();
		r.start();
		
		System.out.println("/////");
		
		
	}
}
